Location: BondGraph Basic @ 4a621850ad0f / BG Tutorial Biochemical Systems / PK.cellml

Author:
Soroush Safaei <ssaf006@aucklanduni.ac.nz>
Date:
2018-11-03 15:13:03+13:00
Desc:
change PKPD model
Permanent Source URI:
https://models.cellml.org/workspace/43b/rawfile/4a621850ad0ff8331cd488446d48f355ae006d75/BG Tutorial Biochemical Systems/PK.cellml

<?xml version='1.0'?>
<model name="PK_RacemicWarfarin" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#">
    <units name="l_per_s">
        <unit units="litre"/>
        <unit exponent="-1" units="second"/>
    </units>
    <units name="mg">
        <unit prefix="milli" units="gram"/>
    </units>
    <units name="mg_per_l">
        <unit units="mg"/>
        <unit exponent="-1" units="litre"/>
    </units>
    <units name="mg_per_s">
        <unit units="mg"/>
        <unit exponent="-1" units="second"/>
    </units>
    <units name="per_s">
        <unit exponent="-1" units="second"/>
    </units>
    <component name="state">
        <variable name="t" units="second"/>
        <!-- State variables-->
        <variable initial_value="1" name="q_A1" units="mg"/>
        <variable initial_value="0.0" name="q_A2" units="mg"/>
        <variable name="q_C" units="mg_per_l"/>
        <variable name="v_1" units="mg_per_s"/>
        <variable name="v_2" units="mg_per_s"/>
        <!-- Parameters-->
        <variable initial_value="8.1" name="k_V" units="litre"/>
        <variable initial_value="0.00003722" name="k_CL" units="l_per_s"/>
        <variable initial_value="0.00003333" name="k_1f" units="per_s"/>
        <variable name="k_2f" units="per_s"/>
        <!-- Parameters equations-->
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>k_2f</ci>
                <apply>
                    <divide/>
                    <ci>k_CL</ci>
                    <ci>k_V</ci>
                </apply>
            </apply>
            <!-- State equations-->
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>t</ci>
                    </bvar>
                    <ci>q_A1</ci>
                </apply>
                <apply>
                    <minus/>
                    <ci>v_1</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>t</ci>
                    </bvar>
                    <ci>q_A2</ci>
                </apply>
                <apply>
                    <minus/>
                    <ci>v_1</ci>
                    <ci>v_2</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>v_1</ci>
                <apply>
                    <times/>
                    <ci>k_1f</ci>
                    <ci>q_A1</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>v_2</ci>
                <apply>
                    <times/>
                    <ci>k_2f</ci>
                    <ci>q_A2</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>q_C</ci>
                <apply>
                    <divide/>
                    <ci>q_A2</ci>
                    <ci>k_V</ci>
                </apply>
            </apply>
        </math>
    </component>
</model>